/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Copyright @ Huawei Technologies Co., Ltd. 2022-2022. ALL rights reversed.
 */
#ifndef _ARM_KERNEL_LWT_WORK_H
#define _ARM_KERNEL_LWT_WORK_H

#ifdef CONFIG_EULEROS_LWT

/*
 * wapper function to check if current in LWT stack.
 * @stack: the value of stack pointer.
 * return value: RET_LWT_OK - in LWT stack,
 *               RET_LWT_ERR - not in LWT stack
 */
int lwt_work(unsigned long stack);
#else
static inline int lwt_work(unsigned long stack)
{
	return -1;
}

#endif /* CONFIG_EULEROS_LWT */

#endif /* _ARM_KERNEL_LWT_H */

